package cn.ex.org.mapper;

import cn.ex.basic.mapper.BasicMapper;
import cn.ex.org.domain.Department;
import cn.ex.org.domain.Employee;
import cn.ex.org.query.DepartmentQuery;

import java.util.List;

/**
 * @Author: ZeWangmu
 * @Date: 2022/06/01/13:11
 * @Description:
 *   mapper层
 */
public interface EmployeeMapper extends BasicMapper<Employee> {
    /**
     * 根据用户名查询
     * @param username
     * @return
     */
    Employee loadByUsername(String username);

    /**
     * 查询店长
     * @param shopId
     * @return
     */
    Employee loadByShopId(Long shopId);
}
